{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\ghooijer\Desktop\log_main_analysis.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 1 Mar 2020, 15:51:02

{com}. do "C:\Users\ghooijer\AppData\Local\Temp\STD10b0_000000.tmp"
{txt}
{com}. * Figure 1.
. * National targets and dispersals of new refugees (2007-2016)
. 
. use "NL_dispersal", clear 
{txt}
{com}. 
. line targets refugees refugees_reg year, lpattern(solid longdash shortdash) lwidth(medthick medthick medthick) scheme(s1mono) legend(label(1 "National targets") label(2 "Dispersals") label(3 "Dispersals incl. regularization") col(1) region(lwidth(none))) ytitle("Dispersed refugees (x 10,000)") xtitle(" ") xlabel(2008(2)2016) yscale(titlegap(*+5)) plotregion(style(none)) 
{res}{txt}
{com}. 
. graph export "figure_1.pdf", replace
{txt}(file figure_1.pdf written in PDF format)

{com}. 
. 
. * Figure 2. 
. * Proportion of support for immigrants’ social rights (2007-2016)
. * Mean support across waves
. use "liss_L1L2", clear
{txt}
{com}. 
. keep if sample==1
{txt}(6,741 observations deleted)

{com}. 
. save temp, replace // create a temporary dataset
{txt}(note: file temp.dta not found)
file temp.dta saved

{com}. 
. statsby _b _se e(df_r), by(year) : regress include2 
{txt}(running {bf:regress} on estimation sample)
{p2colset 7 17 21 2}{...}

{p2col :command:}regress include2{p_end}
{p2colset 3 17 21 2}{...}
{p2col :_eq2_stat_1:}{res:e(df_r)}{p_end}
           by:  year

Statsby groups
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
.........

{com}. 
. rename _b_cons mean
{res}{txt}
{com}. rename _se_cons se
{res}{txt}
{com}. rename  _eq2_stat_1 df
{res}{txt}
{com}. 
. gen lb = mean - invttail(df,0.025)*se
{txt}
{com}. gen ub = mean + invttail(df,0.025)*se
{txt}
{com}. 
. tsset year
{res}{txt}{col 9}time variable:  {res}{col 25}year, 2007 to 2016, but with a gap
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. tsline mean lb ub
{res}{txt}
{com}. 
. graph twoway line mean ub lb year, lpattern(solid dash dash) lwidth(medthick medium medium) scheme(s1mono) legend(order(1 2) label(1 "Mean support for immigrants' social rights") label(2 "95% Confidence interval") label(3 " ") col(1) region(lwidth(none))) ytitle("Pr(Support)", size(medsmall)) xtitle(" ") xlabel(2008(2)2016) ylabel(0.2(0.2)0.8) yscale(titlegap(*+5)) xscale(titlegap(*+5)) plotregion(style(none)) 
{res}{txt}
{com}. 
. graph export "figure_2.pdf", replace
{txt}(file figure_2.pdf written in PDF format)

{com}. 
. erase "temp.dta"
{txt}
{com}. 
. 
. * Table 1. 
. * Changes in support for immigrants’ social rights compared to the previous year
. use "liss_L1L2", clear
{txt}
{com}. 
. tab d_include2 if sample==1

  {txt}Change in {c |}
    support {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       Less {c |}{res}      4,911       13.38       13.38
{txt}       Same {c |}{res}     27,495       74.89       88.26
{txt}       More {c |}{res}      4,309       11.74      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}     36,715      100.00
{txt}
{com}. 
. 
. * Figure 3. 
. * Share of vacant social housing allocated to new refugees across 388 municipalities 
. use "municipality", clear 
{txt}
{com}. 
. // Panel A: 2009
. spmap rfg_sh if year==2009 using "nlcoord.dta", id(id) fcolor(OrRd) clmethod(custom) clbreaks(0 5 10 15 25) legstyle(2) legend(size(medium) label(1 "No data") label(2 "0-5%") label(3 "5-10%") label(4 "10-15%") label(5 ">15%") position(4)) title(2009)
{res}{txt}
{com}. 
. graph export "figure_3a.pdf", replace
{txt}(file figure_3a.pdf written in PDF format)

{com}. 
. // Panel B: 2015
. spmap rfg_sh if year==2015 using "nlcoord.dta", id(id) fcolor(OrRd) clmethod(custom) clbreaks(0 5 10 15 25) legstyle(2) legend(size(medium) label(1 "No data") label(2 "0-5%") label(3 "5-10%") label(4 "10-15%") label(5 ">15%") position(4)) title(2015)
{res}{txt}
{com}. 
. graph export "figure_3b.pdf", replace
{txt}(file figure_3b.pdf written in PDF format)

{com}. 
. // to display these figures in greyscale, replace fcolor(OrRd) with fcolor(Greys2)
. 
. * Figure 4. Distribution of changes in social housing allocations in the sample
. use "liss_L1L2", clear
{txt}
{com}. 
. // Calculate the change in the share of social housing allocated to refugees compared to the previous period. Since the panel is unbalanced, a respondent's previous period can be more than the previous wave.
. xtset nomem_encr year 
{res}{txt}{col 8}panel variable:  {res}nomem_encr (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 2007 to 2016, but with gaps
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. gen d_rfg_sh = rfg_sh - L.rfg_sh
{txt}(34,846 missing values generated)

{com}. replace d_rfg_sh = rfg_sh - L2.rfg_sh if d_rfg_sh==.
{txt}(5,346 real changes made)

{com}. replace d_rfg_sh = rfg_sh - L3.rfg_sh if d_rfg_sh==.
{txt}(221 real changes made)

{com}. replace d_rfg_sh = rfg_sh - L4.rfg_sh if d_rfg_sh==.
{txt}(53 real changes made)

{com}. replace d_rfg_sh = rfg_sh - L5.rfg_sh if d_rfg_sh==.
{txt}(11 real changes made)

{com}. 
. histogram d_rfg_sh if sample==1, percent normal normop(lwidth(thin) lpattern(dash)) ytitle("Respondent-years (%)") ysca(titlegap(*+5)) xsca(titlegap(*+5)) xtitle("Change in social housing allocations (percentage points)")xticks(-20(5)20) scheme(s1mono) plotregion(style(none))
{txt}(bin={res}43{txt}, start={res}-16.937408{txt}, width={res}.8609121{txt})
{res}{txt}
{com}. 
. graph export "figure_4.pdf", replace
{txt}(file figure_4.pdf written in PDF format)

{com}. 
. 
. * Table 2. 
. * Social housing allocations and support for immigrants’ social rights
. use "liss_L1L2", clear
{txt}
{com}. 
. // Model 1
. xtlogit include2 c.income_cpi3##c.rfg_sh i.year if sample==1, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 4,847 groups (14,379 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-4888.8572}  
Iteration 1:{space 3}log likelihood = {res: -4887.146}  
Iteration 2:{space 3}log likelihood = {res: -4887.146}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}    12,908
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     2,703

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.8
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}8{txt}){col 67}={col 70}{res}   134.79
{txt}Log likelihood  = {res} -4887.146{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} 1.003164{col 36}{space 2} .0383106{col 47}{space 1}    0.08{col 56}{space 3}0.934{col 64}{space 4} .9308177{col 77}{space 3} 1.081133
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9824589{col 36}{space 2} .0154188{col 47}{space 1}   -1.13{col 56}{space 3}0.259{col 64}{space 4} .9526988{col 77}{space 3} 1.013149
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.004561{col 36}{space 2} .0045222{col 47}{space 1}    1.01{col 56}{space 3}0.312{col 64}{space 4} .9957366{col 77}{space 3} 1.013463
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .9311159{col 36}{space 2} .0588993{col 47}{space 1}   -1.13{col 56}{space 3}0.259{col 64}{space 4} .8225448{col 77}{space 3} 1.054018
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .8794714{col 36}{space 2}  .055337{col 47}{space 1}   -2.04{col 56}{space 3}0.041{col 64}{space 4}  .777434{col 77}{space 3} .9949012
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} .7196299{col 36}{space 2} .0473367{col 47}{space 1}   -5.00{col 56}{space 3}0.000{col 64}{space 4} .6325835{col 77}{space 3} .8186544
{txt}{space 17}2013  {c |}{col 24}{res}{space 2}  .756517{col 36}{space 2} .0492942{col 47}{space 1}   -4.28{col 56}{space 3}0.000{col 64}{space 4}  .665817{col 77}{space 3} .8595725
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .5107334{col 36}{space 2} .0409805{col 47}{space 1}   -8.37{col 56}{space 3}0.000{col 64}{space 4} .4364104{col 77}{space 3}  .597714
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 2
. xtlogit include2 c.income_cpi3##c.rfg_sh i.year if sample==1 & sec_target==0, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 1,741 groups (4,006 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-1113.2396}  
Iteration 1:{space 3}log likelihood = {res:-1109.9578}  
Iteration 2:{space 3}log likelihood = {res:-1109.9558}  
Iteration 3:{space 3}log likelihood = {res:-1109.9558}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     2,918
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}       671

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.3
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}8{txt}){col 67}={col 70}{res}    29.99
{txt}Log likelihood  = {res}-1109.9558{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0002

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} 1.539045{col 36}{space 2}  .428883{col 47}{space 1}    1.55{col 56}{space 3}0.122{col 64}{space 4}   .89135{col 77}{space 3} 2.657383
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9573531{col 36}{space 2} .0528859{col 47}{space 1}   -0.79{col 56}{space 3}0.430{col 64}{space 4} .8591129{col 77}{space 3} 1.066827
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2}  1.03948{col 36}{space 2} .0405906{col 47}{space 1}    0.99{col 56}{space 3}0.321{col 64}{space 4} .9628926{col 77}{space 3}  1.12216
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .8741224{col 36}{space 2} .1068583{col 47}{space 1}   -1.10{col 56}{space 3}0.271{col 64}{space 4} .6878851{col 77}{space 3} 1.110781
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .7102384{col 36}{space 2} .0885185{col 47}{space 1}   -2.75{col 56}{space 3}0.006{col 64}{space 4} .5563102{col 77}{space 3} .9067576
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} .6725309{col 36}{space 2} .0925988{col 47}{space 1}   -2.88{col 56}{space 3}0.004{col 64}{space 4} .5134674{col 77}{space 3} .8808696
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} .6781818{col 36}{space 2} .0938376{col 47}{space 1}   -2.81{col 56}{space 3}0.005{col 64}{space 4} .5170927{col 77}{space 3} .8894549
{txt}{space 17}2015  {c |}{col 24}{res}{space 2}  .451699{col 36}{space 2} .0785772{col 47}{space 1}   -4.57{col 56}{space 3}0.000{col 64}{space 4} .3211994{col 77}{space 3} .6352191
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 3
. xtlogit include2 c.income_cpi3##c.rfg_sh i.year if sample==1 & sec_target==1, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 4,026 groups (11,133 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-3465.0061}  
Iteration 1:{space 3}log likelihood = {res:-3463.5859}  
Iteration 2:{space 3}log likelihood = {res:-3463.5859}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,230
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     2,017

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.6
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}8{txt}){col 67}={col 70}{res}   113.13
{txt}Log likelihood  = {res}-3463.5859{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .9620914{col 36}{space 2} .0491017{col 47}{space 1}   -0.76{col 56}{space 3}0.449{col 64}{space 4} .8705107{col 77}{space 3} 1.063307
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9568726{col 36}{space 2} .0207367{col 47}{space 1}   -2.03{col 56}{space 3}0.042{col 64}{space 4} .9170805{col 77}{space 3} .9983912
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.011962{col 36}{space 2} .0059087{col 47}{space 1}    2.04{col 56}{space 3}0.042{col 64}{space 4} 1.000447{col 77}{space 3} 1.023609
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2}  .939593{col 36}{space 2} .0710539{col 47}{space 1}   -0.82{col 56}{space 3}0.410{col 64}{space 4} .8101588{col 77}{space 3} 1.089706
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .9357781{col 36}{space 2}  .070638{col 47}{space 1}   -0.88{col 56}{space 3}0.379{col 64}{space 4} .8070849{col 77}{space 3} 1.084992
{txt}{space 17}2012  {c |}{col 24}{res}{space 2}  .724721{col 36}{space 2} .0571134{col 47}{space 1}   -4.09{col 56}{space 3}0.000{col 64}{space 4} .6209975{col 77}{space 3} .8457691
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} .7840783{col 36}{space 2} .0617205{col 47}{space 1}   -3.09{col 56}{space 3}0.002{col 64}{space 4} .6719782{col 77}{space 3}  .914879
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .4985993{col 36}{space 2}  .048818{col 47}{space 1}   -7.11{col 56}{space 3}0.000{col 64}{space 4} .4115383{col 77}{space 3}  .604078
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 4
. xtlogit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 4,021 groups (11,123 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-3459.0558}  
Iteration 1:{space 3}log likelihood = {res:-3450.3582}  
Iteration 2:{space 3}log likelihood = {res:-3450.3523}  
Iteration 3:{space 3}log likelihood = {res:-3450.3523}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,205
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     2,011

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.6
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}16{txt}){col 67}={col 70}{res}   120.68
{txt}Log likelihood  = {res}-3450.3523{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .9656398{col 36}{space 2} .0511958{col 47}{space 1}   -0.66{col 56}{space 3}0.510{col 64}{space 4} .8703353{col 77}{space 3} 1.071381
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9574562{col 36}{space 2} .0208862{col 47}{space 1}   -1.99{col 56}{space 3}0.046{col 64}{space 4} .9173828{col 77}{space 3} .9992801
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.011906{col 36}{space 2}   .00594{col 47}{space 1}    2.02{col 56}{space 3}0.044{col 64}{space 4}  1.00033{col 77}{space 3} 1.023615
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2} 1.034657{col 36}{space 2} .0542383{col 47}{space 1}    0.65{col 56}{space 3}0.516{col 64}{space 4} .9336307{col 77}{space 3} 1.146615
{txt}{space 16}degree {c |}{col 24}{res}{space 2} .5418037{col 36}{space 2} .2125488{col 47}{space 1}   -1.56{col 56}{space 3}0.118{col 64}{space 4} .2511406{col 77}{space 3} 1.168872
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2} 1.024635{col 36}{space 2} .0776568{col 47}{space 1}    0.32{col 56}{space 3}0.748{col 64}{space 4} .8831956{col 77}{space 3} 1.188726
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} 1.107114{col 36}{space 2} .2223093{col 47}{space 1}    0.51{col 56}{space 3}0.612{col 64}{space 4}  .746914{col 77}{space 3} 1.641022
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} 1.051781{col 36}{space 2} .0308212{col 47}{space 1}    1.72{col 56}{space 3}0.085{col 64}{space 4} .9930745{col 77}{space 3} 1.113958
{txt}{space 19}asc {c |}{col 24}{res}{space 2} 1.129276{col 36}{space 2} .1661504{col 47}{space 1}    0.83{col 56}{space 3}0.409{col 64}{space 4}  .846375{col 77}{space 3} 1.506737
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} .9891356{col 36}{space 2}  .019137{col 47}{space 1}   -0.56{col 56}{space 3}0.572{col 64}{space 4}   .95233{col 77}{space 3} 1.027364
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} 1.013665{col 36}{space 2} .0104349{col 47}{space 1}    1.32{col 56}{space 3}0.187{col 64}{space 4} .9934174{col 77}{space 3} 1.034324
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2}  .904564{col 36}{space 2}  .084553{col 47}{space 1}   -1.07{col 56}{space 3}0.283{col 64}{space 4} .7531375{col 77}{space 3} 1.086436
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .8551328{col 36}{space 2} .1103688{col 47}{space 1}   -1.21{col 56}{space 3}0.225{col 64}{space 4} .6640063{col 77}{space 3} 1.101273
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} .6492916{col 36}{space 2}  .114234{col 47}{space 1}   -2.45{col 56}{space 3}0.014{col 64}{space 4} .4599202{col 77}{space 3} .9166363
{txt}{space 17}2013  {c |}{col 24}{res}{space 2}    .6914{col 36}{space 2} .1562151{col 47}{space 1}   -1.63{col 56}{space 3}0.102{col 64}{space 4} .4440262{col 77}{space 3} 1.076589
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .4040793{col 36}{space 2} .1344117{col 47}{space 1}   -2.72{col 56}{space 3}0.006{col 64}{space 4} .2105356{col 77}{space 3} .7755461
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 5
. xtlogit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct decline i.year if sample==1 & sec_target==1, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 4,021 groups (11,123 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-3458.7092}  
Iteration 1:{space 3}log likelihood = {res:-3450.2034}  
Iteration 2:{space 3}log likelihood = {res:-3450.1973}  
Iteration 3:{space 3}log likelihood = {res:-3450.1973}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,205
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     2,011

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.6
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}17{txt}){col 67}={col 70}{res}   120.99
{txt}Log likelihood  = {res}-3450.1973{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .9667028{col 36}{space 2} .0512962{col 47}{space 1}   -0.64{col 56}{space 3}0.523{col 64}{space 4} .8712156{col 77}{space 3} 1.072656
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9578387{col 36}{space 2} .0209033{col 47}{space 1}   -1.97{col 56}{space 3}0.048{col 64}{space 4} .9177327{col 77}{space 3} .9996973
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.011835{col 36}{space 2} .0059407{col 47}{space 1}    2.00{col 56}{space 3}0.045{col 64}{space 4} 1.000258{col 77}{space 3} 1.023546
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2} 1.034677{col 36}{space 2} .0542606{col 47}{space 1}    0.65{col 56}{space 3}0.516{col 64}{space 4} .9336108{col 77}{space 3} 1.146683
{txt}{space 16}degree {c |}{col 24}{res}{space 2}  .542669{col 36}{space 2} .2128931{col 47}{space 1}   -1.56{col 56}{space 3}0.119{col 64}{space 4} .2515372{col 77}{space 3}  1.17076
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2} 1.026969{col 36}{space 2} .0779673{col 47}{space 1}    0.35{col 56}{space 3}0.726{col 64}{space 4} .8849812{col 77}{space 3} 1.191736
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} 1.106897{col 36}{space 2} .2222657{col 47}{space 1}    0.51{col 56}{space 3}0.613{col 64}{space 4} .7467674{col 77}{space 3}   1.6407
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} 1.050175{col 36}{space 2} .0308902{col 47}{space 1}    1.66{col 56}{space 3}0.096{col 64}{space 4} .9913439{col 77}{space 3} 1.112498
{txt}{space 19}asc {c |}{col 24}{res}{space 2} 1.134938{col 36}{space 2} .1674079{col 47}{space 1}    0.86{col 56}{space 3}0.391{col 64}{space 4} .8499957{col 77}{space 3} 1.515402
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} .9888974{col 36}{space 2} .0191408{col 47}{space 1}   -0.58{col 56}{space 3}0.564{col 64}{space 4} .9520849{col 77}{space 3} 1.027133
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} 1.014144{col 36}{space 2} .0104768{col 47}{space 1}    1.36{col 56}{space 3}0.174{col 64}{space 4} .9938161{col 77}{space 3} 1.034887
{txt}{space 15}decline {c |}{col 24}{res}{space 2} .6845754{col 36}{space 2} .4676214{col 47}{space 1}   -0.55{col 56}{space 3}0.579{col 64}{space 4} .1794653{col 77}{space 3} 2.611332
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .9049357{col 36}{space 2} .0845991{col 47}{space 1}   -1.07{col 56}{space 3}0.285{col 64}{space 4} .7534285{col 77}{space 3}  1.08691
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .8553705{col 36}{space 2} .1104289{col 47}{space 1}   -1.21{col 56}{space 3}0.226{col 64}{space 4}  .664146{col 77}{space 3} 1.101653
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} .6498668{col 36}{space 2} .1143745{col 47}{space 1}   -2.45{col 56}{space 3}0.014{col 64}{space 4} .4602731{col 77}{space 3} .9175571
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} .6923203{col 36}{space 2} .1564828{col 47}{space 1}   -1.63{col 56}{space 3}0.104{col 64}{space 4}  .444542{col 77}{space 3} 1.078205
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .4044179{col 36}{space 2} .1345709{col 47}{space 1}   -2.72{col 56}{space 3}0.007{col 64}{space 4} .2106645{col 77}{space 3} .7763713
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 6
. xtlogit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct stu i.year if sample==1 & sec_target==1, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 4,021 groups (11,123 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-3460.0675}  
Iteration 1:{space 3}log likelihood = {res:-3450.3269}  
Iteration 2:{space 3}log likelihood = {res:-3450.3208}  
Iteration 3:{space 3}log likelihood = {res:-3450.3208}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,205
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     2,011

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.6
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}17{txt}){col 67}={col 70}{res}   120.74
{txt}Log likelihood  = {res}-3450.3208{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .9658214{col 36}{space 2} .0512118{col 47}{space 1}   -0.66{col 56}{space 3}0.512{col 64}{space 4} .8704877{col 77}{space 3} 1.071596
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9573766{col 36}{space 2} .0208851{col 47}{space 1}   -2.00{col 56}{space 3}0.046{col 64}{space 4} .9173054{col 77}{space 3} .9991983
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.011865{col 36}{space 2}  .005942{col 47}{space 1}    2.01{col 56}{space 3}0.045{col 64}{space 4} 1.000286{col 77}{space 3} 1.023578
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2}  1.03479{col 36}{space 2} .0542228{col 47}{space 1}    0.65{col 56}{space 3}0.514{col 64}{space 4} .9337905{col 77}{space 3} 1.146714
{txt}{space 16}degree {c |}{col 24}{res}{space 2}  .542482{col 36}{space 2} .2129032{col 47}{space 1}   -1.56{col 56}{space 3}0.119{col 64}{space 4} .2513747{col 77}{space 3} 1.170709
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2} 1.024234{col 36}{space 2} .0776553{col 47}{space 1}    0.32{col 56}{space 3}0.752{col 64}{space 4} .8828006{col 77}{space 3} 1.188325
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} 1.108436{col 36}{space 2} .2226461{col 47}{space 1}    0.51{col 56}{space 3}0.608{col 64}{space 4} .7477112{col 77}{space 3} 1.643188
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} 1.050847{col 36}{space 2} .0310021{col 47}{space 1}    1.68{col 56}{space 3}0.093{col 64}{space 4} .9918068{col 77}{space 3} 1.113401
{txt}{space 19}asc {c |}{col 24}{res}{space 2} 1.123722{col 36}{space 2} .1667998{col 47}{space 1}    0.79{col 56}{space 3}0.432{col 64}{space 4} .8400604{col 77}{space 3} 1.503166
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} .9895692{col 36}{space 2} .0192146{col 47}{space 1}   -0.54{col 56}{space 3}0.589{col 64}{space 4} .9526169{col 77}{space 3} 1.027955
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} 1.013793{col 36}{space 2} .0104495{col 47}{space 1}    1.33{col 56}{space 3}0.184{col 64}{space 4} .9935181{col 77}{space 3} 1.034482
{txt}{space 19}stu {c |}{col 24}{res}{space 2} 1.180611{col 36}{space 2} .7813928{col 47}{space 1}    0.25{col 56}{space 3}0.802{col 64}{space 4} .3226527{col 77}{space 3} 4.319947
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .9045082{col 36}{space 2} .0845322{col 47}{space 1}   -1.07{col 56}{space 3}0.283{col 64}{space 4} .7531165{col 77}{space 3} 1.086333
{txt}{space 17}2011  {c |}{col 24}{res}{space 2}  .855617{col 36}{space 2} .1104122{col 47}{space 1}   -1.21{col 56}{space 3}0.227{col 64}{space 4} .6644113{col 77}{space 3} 1.101848
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} .6444465{col 36}{space 2} .1149643{col 47}{space 1}   -2.46{col 56}{space 3}0.014{col 64}{space 4} .4542962{col 77}{space 3} .9141861
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} .6865147{col 36}{space 2} .1562612{col 47}{space 1}   -1.65{col 56}{space 3}0.098{col 64}{space 4} .4394438{col 77}{space 3} 1.072498
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .4018892{col 36}{space 2} .1339124{col 47}{space 1}   -2.74{col 56}{space 3}0.006{col 64}{space 4} .2091605{col 77}{space 3} .7722054
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. * Table 3. 
. * Social housing allocations and support for immigrants’ social rights by housing market tightness
. use "liss_L1L2", clear
{txt}
{com}. 
. // Model 7
. xtlogit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & decline==1, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 759 groups (2,042 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-606.33115}  
Iteration 1:{space 3}log likelihood = {res:-599.67557}  
Iteration 2:{space 3}log likelihood = {res:-599.26101}  
Iteration 3:{space 3}log likelihood = {res:-599.20383}  
Iteration 4:{space 3}log likelihood = {res:-599.19038}  
Iteration 5:{space 3}log likelihood = {res:-599.18751}  
Iteration 6:{space 3}log likelihood = {res: -599.1868}  
Iteration 7:{space 3}log likelihood = {res:-599.18666}  
Iteration 8:{space 3}log likelihood = {res:-599.18663}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     1,613
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}       354

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.6
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}16{txt}){col 67}={col 70}{res}    47.43
{txt}Log likelihood  = {res}-599.18663{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0001

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} 1.161479{col 36}{space 2} .1563114{col 47}{space 1}    1.11{col 56}{space 3}0.266{col 64}{space 4} .8921894{col 77}{space 3} 1.512049
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} 1.005563{col 36}{space 2}   .05983{col 47}{space 1}    0.09{col 56}{space 3}0.926{col 64}{space 4} .8948774{col 77}{space 3} 1.129939
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} .9990758{col 36}{space 2} .0166857{col 47}{space 1}   -0.06{col 56}{space 3}0.956{col 64}{space 4} .9669019{col 77}{space 3}  1.03232
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2} 1.059741{col 36}{space 2} .0816834{col 47}{space 1}    0.75{col 56}{space 3}0.452{col 64}{space 4} .9111511{col 77}{space 3} 1.232564
{txt}{space 16}degree {c |}{col 24}{res}{space 2} 9.25e-07{col 36}{space 2} .0005358{col 47}{space 1}   -0.02{col 56}{space 3}0.981{col 64}{space 4}        0{col 77}{space 3}        .
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2} 1.053411{col 36}{space 2}  .167467{col 47}{space 1}    0.33{col 56}{space 3}0.743{col 64}{space 4} .7713959{col 77}{space 3} 1.438528
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} 1.206145{col 36}{space 2} .5151994{col 47}{space 1}    0.44{col 56}{space 3}0.661{col 64}{space 4} .5221707{col 77}{space 3} 2.786034
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} 1.187847{col 36}{space 2} .1235445{col 47}{space 1}    1.66{col 56}{space 3}0.098{col 64}{space 4} .9687898{col 77}{space 3} 1.456436
{txt}{space 19}asc {c |}{col 24}{res}{space 2} .9544566{col 36}{space 2} .4530302{col 47}{space 1}   -0.10{col 56}{space 3}0.922{col 64}{space 4} .3764747{col 77}{space 3} 2.419784
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} .9822991{col 36}{space 2} .0454286{col 47}{space 1}   -0.39{col 56}{space 3}0.699{col 64}{space 4} .8971768{col 77}{space 3} 1.075498
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} 1.029243{col 36}{space 2} .0253235{col 47}{space 1}    1.17{col 56}{space 3}0.241{col 64}{space 4}  .980788{col 77}{space 3} 1.080093
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .6820797{col 36}{space 2} .1363241{col 47}{space 1}   -1.91{col 56}{space 3}0.056{col 64}{space 4} .4610091{col 77}{space 3} 1.009162
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .5456391{col 36}{space 2}  .130649{col 47}{space 1}   -2.53{col 56}{space 3}0.011{col 64}{space 4} .3412652{col 77}{space 3} .8724067
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} .4251165{col 36}{space 2}  .128951{col 47}{space 1}   -2.82{col 56}{space 3}0.005{col 64}{space 4} .2345915{col 77}{space 3} .7703776
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} .4517457{col 36}{space 2} .1707989{col 47}{space 1}   -2.10{col 56}{space 3}0.036{col 64}{space 4} .2153111{col 77}{space 3} .9478108
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .2176726{col 36}{space 2} .1176144{col 47}{space 1}   -2.82{col 56}{space 3}0.005{col 64}{space 4} .0754878{col 77}{space 3} .6276695
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 8
. xtlogit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & decline==0, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 3,286 groups (9,095 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-2842.6641}  
Iteration 1:{space 3}log likelihood = {res:-2837.0785}  
Iteration 2:{space 3}log likelihood = {res: -2837.078}  
Iteration 3:{space 3}log likelihood = {res: -2837.078}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     7,578
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     1,657

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.6
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}16{txt}){col 67}={col 70}{res}    91.17
{txt}Log likelihood  = {res} -2837.078{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .9188924{col 36}{space 2} .0547143{col 47}{space 1}   -1.42{col 56}{space 3}0.155{col 64}{space 4} .8176753{col 77}{space 3} 1.032639
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9490333{col 36}{space 2} .0225597{col 47}{space 1}   -2.20{col 56}{space 3}0.028{col 64}{space 4} .9058314{col 77}{space 3} .9942956
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.014605{col 36}{space 2} .0064049{col 47}{space 1}    2.30{col 56}{space 3}0.022{col 64}{space 4} 1.002129{col 77}{space 3} 1.027236
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2} .7736938{col 36}{space 2}  .151162{col 47}{space 1}   -1.31{col 56}{space 3}0.189{col 64}{space 4} .5275503{col 77}{space 3} 1.134683
{txt}{space 16}degree {c |}{col 24}{res}{space 2} .6873597{col 36}{space 2} .2790145{col 47}{space 1}   -0.92{col 56}{space 3}0.356{col 64}{space 4} .3102148{col 77}{space 3}  1.52302
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2} .9983472{col 36}{space 2} .0879427{col 47}{space 1}   -0.02{col 56}{space 3}0.985{col 64}{space 4} .8400414{col 77}{space 3} 1.186486
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2}  1.08895{col 36}{space 2} .2479126{col 47}{space 1}    0.37{col 56}{space 3}0.708{col 64}{space 4} .6969821{col 77}{space 3} 1.701352
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} 1.039878{col 36}{space 2}  .032754{col 47}{space 1}    1.24{col 56}{space 3}0.214{col 64}{space 4} .9776228{col 77}{space 3} 1.106098
{txt}{space 19}asc {c |}{col 24}{res}{space 2} 1.096966{col 36}{space 2} .1760258{col 47}{space 1}    0.58{col 56}{space 3}0.564{col 64}{space 4} .8009474{col 77}{space 3} 1.502388
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} .9801535{col 36}{space 2} .0217784{col 47}{space 1}   -0.90{col 56}{space 3}0.367{col 64}{space 4} .9383847{col 77}{space 3} 1.023781
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2}  1.00628{col 36}{space 2} .0115727{col 47}{space 1}    0.54{col 56}{space 3}0.586{col 64}{space 4} .9838514{col 77}{space 3} 1.029219
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} 1.295928{col 36}{space 2} .2856009{col 47}{space 1}    1.18{col 56}{space 3}0.239{col 64}{space 4} .8413762{col 77}{space 3}  1.99605
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} 1.657412{col 36}{space 2} .6606218{col 47}{space 1}    1.27{col 56}{space 3}0.205{col 64}{space 4} .7588454{col 77}{space 3} 3.619994
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} 1.659449{col 36}{space 2} .9841411{col 47}{space 1}    0.85{col 56}{space 3}0.393{col 64}{space 4} .5189869{col 77}{space 3} 5.306052
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} 2.324516{col 36}{space 2} 1.828593{col 47}{space 1}    1.07{col 56}{space 3}0.284{col 64}{space 4} .4974278{col 77}{space 3} 10.86263
{txt}{space 17}2015  {c |}{col 24}{res}{space 2}  2.44179{col 36}{space 2} 2.871899{col 47}{space 1}    0.76{col 56}{space 3}0.448{col 64}{space 4} .2435411{col 77}{space 3} 24.48186
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 9
. xtlogit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & low_stu==1, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 2,567 groups (5,992 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-1566.9884}  
Iteration 1:{space 3}log likelihood = {res:-1558.6856}  
Iteration 2:{space 3}log likelihood = {res: -1558.669}  
Iteration 3:{space 3}log likelihood = {res: -1558.669}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     4,212
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     1,026

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.1
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}16{txt}){col 67}={col 70}{res}    50.76
{txt}Log likelihood  = {res} -1558.669{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2}  1.02973{col 36}{space 2} .0801722{col 47}{space 1}    0.38{col 56}{space 3}0.707{col 64}{space 4} .8839977{col 77}{space 3} 1.199488
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2}  .982274{col 36}{space 2} .0353515{col 47}{space 1}   -0.50{col 56}{space 3}0.619{col 64}{space 4} .9153736{col 77}{space 3} 1.054064
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.001208{col 36}{space 2} .0099239{col 47}{space 1}    0.12{col 56}{space 3}0.903{col 64}{space 4} .9819452{col 77}{space 3} 1.020849
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2} .5133141{col 36}{space 2} .1243455{col 47}{space 1}   -2.75{col 56}{space 3}0.006{col 64}{space 4} .3192917{col 77}{space 3} .8252371
{txt}{space 16}degree {c |}{col 24}{res}{space 2} .4468848{col 36}{space 2} .2988146{col 47}{space 1}   -1.20{col 56}{space 3}0.228{col 64}{space 4} .1205119{col 77}{space 3} 1.657148
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2}  1.03603{col 36}{space 2} .1231024{col 47}{space 1}    0.30{col 56}{space 3}0.766{col 64}{space 4} .8207891{col 77}{space 3} 1.307715
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} 1.093536{col 36}{space 2} .3528757{col 47}{space 1}    0.28{col 56}{space 3}0.782{col 64}{space 4} .5809738{col 77}{space 3} 2.058303
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} 1.040018{col 36}{space 2} .0532097{col 47}{space 1}    0.77{col 56}{space 3}0.443{col 64}{space 4} .9407874{col 77}{space 3} 1.149715
{txt}{space 19}asc {c |}{col 24}{res}{space 2} 1.403626{col 36}{space 2} .3316409{col 47}{space 1}    1.44{col 56}{space 3}0.151{col 64}{space 4} .8833526{col 77}{space 3} 2.230327
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} 1.000648{col 36}{space 2} .0356374{col 47}{space 1}    0.02{col 56}{space 3}0.985{col 64}{space 4}  .933182{col 77}{space 3} 1.072991
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} .9959816{col 36}{space 2} .0158154{col 47}{space 1}   -0.25{col 56}{space 3}0.800{col 64}{space 4} .9654613{col 77}{space 3} 1.027467
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} 1.827046{col 36}{space 2} .5001329{col 47}{space 1}    2.20{col 56}{space 3}0.028{col 64}{space 4} 1.068422{col 77}{space 3} 3.124325
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} 3.185937{col 36}{space 2} 1.566807{col 47}{space 1}    2.36{col 56}{space 3}0.018{col 64}{space 4} 1.215139{col 77}{space 3} 8.353112
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} 5.331797{col 36}{space 2} 3.936036{col 47}{space 1}    2.27{col 56}{space 3}0.023{col 64}{space 4} 1.254585{col 77}{space 3} 22.65933
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} 10.61169{col 36}{space 2} 10.37462{col 47}{space 1}    2.42{col 56}{space 3}0.016{col 64}{space 4} 1.561706{col 77}{space 3} 72.10578
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} 28.52394{col 36}{space 2} 41.73187{col 47}{space 1}    2.29{col 56}{space 3}0.022{col 64}{space 4} 1.621294{col 77}{space 3} 501.8309
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Model 10
. xtlogit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & low_stu==0, fe or
{txt}note: multiple positive outcomes within groups encountered.
note: 2,547 groups (6,035 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-1530.2591}  
Iteration 1:{space 3}log likelihood = {res:-1524.8393}  
Iteration 2:{space 3}log likelihood = {res:-1524.8328}  
Iteration 3:{space 3}log likelihood = {res:-1524.8328}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     4,089
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}       981

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       4.2
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}{col 49}LR chi2({res}16{txt}){col 67}={col 70}{res}    68.03
{txt}Log likelihood  = {res}-1524.8328{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}              include2{col 24}{c |} Odds Ratio{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .8916556{col 36}{space 2} .0709835{col 47}{space 1}   -1.44{col 56}{space 3}0.150{col 64}{space 4} .7628412{col 77}{space 3} 1.042222
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .9394803{col 36}{space 2} .0285808{col 47}{space 1}   -2.05{col 56}{space 3}0.040{col 64}{space 4} .8851003{col 77}{space 3} .9972013
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} 1.017786{col 36}{space 2} .0084131{col 47}{space 1}    2.13{col 56}{space 3}0.033{col 64}{space 4}  1.00143{col 77}{space 3}  1.03441
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2} .9442786{col 36}{space 2} .2727344{col 47}{space 1}   -0.20{col 56}{space 3}0.843{col 64}{space 4} .5361039{col 77}{space 3} 1.663226
{txt}{space 16}degree {c |}{col 24}{res}{space 2} .7207293{col 36}{space 2} .3793479{col 47}{space 1}   -0.62{col 56}{space 3}0.534{col 64}{space 4} .2568926{col 77}{space 3} 2.022054
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2} .9929005{col 36}{space 2} .1156302{col 47}{space 1}   -0.06{col 56}{space 3}0.951{col 64}{space 4} .7902734{col 77}{space 3} 1.247482
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} 1.069188{col 36}{space 2} .3013484{col 47}{space 1}    0.24{col 56}{space 3}0.812{col 64}{space 4}  .615382{col 77}{space 3} 1.857648
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} 1.085823{col 36}{space 2} .0547007{col 47}{space 1}    1.63{col 56}{space 3}0.102{col 64}{space 4} .9837347{col 77}{space 3} 1.198506
{txt}{space 19}asc {c |}{col 24}{res}{space 2}  .937799{col 36}{space 2}  .197416{col 47}{space 1}   -0.31{col 56}{space 3}0.760{col 64}{space 4} .6207595{col 77}{space 3} 1.416759
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} .9803279{col 36}{space 2} .0295413{col 47}{space 1}   -0.66{col 56}{space 3}0.510{col 64}{space 4} .9241046{col 77}{space 3} 1.039972
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} 1.030774{col 36}{space 2} .0155323{col 47}{space 1}    2.01{col 56}{space 3}0.044{col 64}{space 4} 1.000777{col 77}{space 3} 1.061671
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} 1.059371{col 36}{space 2} .3458407{col 47}{space 1}    0.18{col 56}{space 3}0.860{col 64}{space 4} .5586835{col 77}{space 3} 2.008769
{txt}{space 17}2011  {c |}{col 24}{res}{space 2}  1.08504{col 36}{space 2} .6394672{col 47}{space 1}    0.14{col 56}{space 3}0.890{col 64}{space 4} .3418152{col 77}{space 3} 3.444296
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} .8741238{col 36}{space 2} .7650153{col 47}{space 1}   -0.15{col 56}{space 3}0.878{col 64}{space 4} .1572602{col 77}{space 3} 4.858779
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} 1.076501{col 36}{space 2} 1.248663{col 47}{space 1}    0.06{col 56}{space 3}0.949{col 64}{space 4} .1108364{col 77}{space 3} 10.45554
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .7134361{col 36}{space 2} 1.239624{col 47}{space 1}   -0.19{col 56}{space 3}0.846{col 64}{space 4} .0236787{col 77}{space 3} 21.49572
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. * Figure 5. 
. * Social housing competition, income, and support for immigrants’ social rights
. use "liss_L1L2", clear
{txt}
{com}. 
. // Create respondent-means for all time-varying variables for this group 
. egen income_m = mean(income_cpi3) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31038 missing values generated)

{com}. egen rfg_sh_m = mean(rfg_sh) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31776 missing values generated)

{com}. egen age_m = mean(age) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31038 missing values generated)

{com}. egen degree_m = mean(degree) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31059 missing values generated)

{com}. egen hhsize_m = mean(hhsize) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31038 missing values generated)

{com}. egen unemployed_m = mean(unemployed) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31038 missing values generated)

{com}. egen fb_m = mean(fb_pct) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31038 missing values generated)

{com}. egen asc_m = mean(asc) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31038 missing values generated)

{com}. egen sh_m = mean(sh_pct) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31606 missing values generated)

{com}. egen leduc_m = mean(leduc_pct) if sample==1 & sec_target==1 & decline==0, by(nomem_encr)
{txt}(31038 missing values generated)

{com}. 
. // Correlated Random Effects Probit Model
. xtprobit include2 c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year income_m rfg_sh_m age_m degree_m hhsize_m unemployed_m fb_m asc_m sh_m leduc_m if sample==1 & sec_target==1 & decline==0, re vce(cluster nomem_encr) 

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-11199.617}  
Iteration 1:{space 3}log pseudolikelihood = {res:-10957.754}  
Iteration 2:{space 3}log pseudolikelihood = {res:-10957.505}  
Iteration 3:{space 3}log pseudolikelihood = {res:-10957.505}  
{res}
{txt}Fitting full model:

rho = {res} 0.0     {txt}log pseudolikelihood = {res}-10957.505
{txt}rho = {res} 0.1     {txt}log pseudolikelihood = {res} -10325.44
{txt}rho = {res} 0.2     {txt}log pseudolikelihood = {res}-9917.0477
{txt}rho = {res} 0.3     {txt}log pseudolikelihood = {res}-9636.5537
{txt}rho = {res} 0.4     {txt}log pseudolikelihood = {res}-9442.8204
{txt}rho = {res} 0.5     {txt}log pseudolikelihood = {res}-9317.1328
{txt}rho = {res} 0.6     {txt}log pseudolikelihood = {res}-9253.8573
{txt}rho = {res} 0.7     {txt}log pseudolikelihood = {res}-9261.7735

{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-9254.3289}  
Iteration 1:{space 3}log pseudolikelihood = {res:-9198.2121}  
Iteration 2:{space 3}log pseudolikelihood = {res:-9197.4848}  
Iteration 3:{space 3}log pseudolikelihood = {res:-9197.4845}  
{res}
{txt}Calculating robust standard errors:
{res}
{txt}Random-effects probit regression{col 49}Number of obs{col 67}={col 69}{res}    16,673
{txt}Group variable: {res}nomem_encr{col 49}{txt}Number of groups{col 67}={col 69}{res}     4,943

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         1
{txt}{col 63}avg{col 67}={col 69}{res}       3.4
{txt}{col 63}max{col 67}={col 69}{res}         6

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}26{txt}){col 67}={col 70}{res}   262.24
{txt}Log pseudolikelihood  = {res}-9197.4845{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{ralign 88:(Std. Err. adjusted for {res:4,943} clusters in nomem_encr)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}              include2{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2}-.0687775{col 36}{space 2} .0338566{col 47}{space 1}   -2.03{col 56}{space 3}0.042{col 64}{space 4}-.1351353{col 77}{space 3}-.0024197
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2}-.0397988{col 36}{space 2} .0132562{col 47}{space 1}   -3.00{col 56}{space 3}0.003{col 64}{space 4}-.0657804{col 77}{space 3}-.0138172
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2} .0111098{col 36}{space 2}  .003478{col 47}{space 1}    3.19{col 56}{space 3}0.001{col 64}{space 4} .0042931{col 77}{space 3} .0179265
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2} .0220484{col 36}{space 2} .0189141{col 47}{space 1}    1.17{col 56}{space 3}0.244{col 64}{space 4}-.0150225{col 77}{space 3} .0591192
{txt}{space 16}degree {c |}{col 24}{res}{space 2}-.1921958{col 36}{space 2} .2694885{col 47}{space 1}   -0.71{col 56}{space 3}0.476{col 64}{space 4}-.7203836{col 77}{space 3}  .335992
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2}-.0190371{col 36}{space 2} .0485217{col 47}{space 1}   -0.39{col 56}{space 3}0.695{col 64}{space 4}-.1141378{col 77}{space 3} .0760636
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} .0267553{col 36}{space 2} .1242357{col 47}{space 1}    0.22{col 56}{space 3}0.829{col 64}{space 4}-.2167421{col 77}{space 3} .2702528
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} .0253187{col 36}{space 2} .0151158{col 47}{space 1}    1.67{col 56}{space 3}0.094{col 64}{space 4}-.0043078{col 77}{space 3} .0549452
{txt}{space 19}asc {c |}{col 24}{res}{space 2} .0344329{col 36}{space 2} .0830018{col 47}{space 1}    0.41{col 56}{space 3}0.678{col 64}{space 4}-.1282478{col 77}{space 3} .1971135
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2}-.0199514{col 36}{space 2} .0122403{col 47}{space 1}   -1.63{col 56}{space 3}0.103{col 64}{space 4} -.043942{col 77}{space 3} .0040391
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} .0022027{col 36}{space 2} .0063013{col 47}{space 1}    0.35{col 56}{space 3}0.727{col 64}{space 4}-.0101476{col 77}{space 3} .0145531
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2}-.0461024{col 36}{space 2} .0489293{col 47}{space 1}   -0.94{col 56}{space 3}0.346{col 64}{space 4}-.1420022{col 77}{space 3} .0497973
{txt}{space 17}2011  {c |}{col 24}{res}{space 2}-.0589976{col 36}{space 2} .0532032{col 47}{space 1}   -1.11{col 56}{space 3}0.267{col 64}{space 4} -.163274{col 77}{space 3} .0452787
{txt}{space 17}2012  {c |}{col 24}{res}{space 2}-.2344292{col 36}{space 2} .0653281{col 47}{space 1}   -3.59{col 56}{space 3}0.000{col 64}{space 4}-.3624699{col 77}{space 3}-.1063884
{txt}{space 17}2013  {c |}{col 24}{res}{space 2}-.2192708{col 36}{space 2} .0761194{col 47}{space 1}   -2.88{col 56}{space 3}0.004{col 64}{space 4}-.3684621{col 77}{space 3}-.0700796
{txt}{space 17}2015  {c |}{col 24}{res}{space 2}-.5347149{col 36}{space 2} .1022806{col 47}{space 1}   -5.23{col 56}{space 3}0.000{col 64}{space 4}-.7351811{col 77}{space 3}-.3342486
{txt}{space 22} {c |}
{space 14}income_m {c |}{col 24}{res}{space 2} .1067496{col 36}{space 2} .0371103{col 47}{space 1}    2.88{col 56}{space 3}0.004{col 64}{space 4} .0340148{col 77}{space 3} .1794845
{txt}{space 14}rfg_sh_m {c |}{col 24}{res}{space 2}-.0007189{col 36}{space 2} .0146565{col 47}{space 1}   -0.05{col 56}{space 3}0.961{col 64}{space 4}-.0294451{col 77}{space 3} .0280072
{txt}{space 17}age_m {c |}{col 24}{res}{space 2}-.0109279{col 36}{space 2} .0189882{col 47}{space 1}   -0.58{col 56}{space 3}0.565{col 64}{space 4} -.048144{col 77}{space 3} .0262882
{txt}{space 14}degree_m {c |}{col 24}{res}{space 2} .6380141{col 36}{space 2} .2870816{col 47}{space 1}    2.22{col 56}{space 3}0.026{col 64}{space 4} .0753445{col 77}{space 3} 1.200684
{txt}{space 14}hhsize_m {c |}{col 24}{res}{space 2} -.033454{col 36}{space 2} .0549741{col 47}{space 1}   -0.61{col 56}{space 3}0.543{col 64}{space 4}-.1412013{col 77}{space 3} .0742933
{txt}{space 10}unemployed_m {c |}{col 24}{res}{space 2}-.4736423{col 36}{space 2} .2916936{col 47}{space 1}   -1.62{col 56}{space 3}0.104{col 64}{space 4}-1.045351{col 77}{space 3} .0980666
{txt}{space 18}fb_m {c |}{col 24}{res}{space 2}-.0331085{col 36}{space 2} .0160452{col 47}{space 1}   -2.06{col 56}{space 3}0.039{col 64}{space 4}-.0645566{col 77}{space 3}-.0016605
{txt}{space 17}asc_m {c |}{col 24}{res}{space 2}-.0406943{col 36}{space 2} .1166933{col 47}{space 1}   -0.35{col 56}{space 3}0.727{col 64}{space 4} -.269409{col 77}{space 3} .1880204
{txt}{space 18}sh_m {c |}{col 24}{res}{space 2} .0255058{col 36}{space 2} .0133545{col 47}{space 1}    1.91{col 56}{space 3}0.056{col 64}{space 4}-.0006686{col 77}{space 3} .0516801
{txt}{space 15}leduc_m {c |}{col 24}{res}{space 2}-.0453844{col 36}{space 2} .0094119{col 47}{space 1}   -4.82{col 56}{space 3}0.000{col 64}{space 4}-.0638314{col 77}{space 3}-.0269374
{txt}{space 17}_cons {c |}{col 24}{res}{space 2} 1.387826{col 36}{space 2} .3348475{col 47}{space 1}    4.14{col 56}{space 3}0.000{col 64}{space 4} .7315366{col 77}{space 3} 2.044115
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}/lnsig2u {c |}{col 24}{res}{space 2} .6505692{col 36}{space 2} .0499539{col 64}{space 4} .5526613{col 77}{space 3}  .748477
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               sigma_u {c |}{col 24}{res}{space 2} 1.384425{col 36}{space 2} .0345787{col 64}{space 4} 1.318284{col 77}{space 3} 1.453884
{txt}                   rho {c |}{col 24}{res}{space 2} .6571387{col 36}{space 2}  .011255{col 64}{space 4} .6347528{col 77}{space 3} .6788468
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // Calculate average marginal effects 
. margins, dydx(rfg_sh) at(income_cpi3=(1.8(0.5)7.3)) asbalanced
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}    16,673
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(include2=1), predict(pr)}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:rfg_sh}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}5.3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}5.8}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}6.3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}6.8}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:income_cpi3}{space 5}{txt:=} {space 8}7.3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:year}{space 12}  {space 12} {txt:(asbalanced)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}rfg_sh       {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2}-.0043551{col 26}{space 2} .0018599{col 37}{space 1}   -2.34{col 46}{space 3}0.019{col 54}{space 4}-.0080004{col 67}{space 3}-.0007097
{txt}{space 10}2  {c |}{col 14}{res}{space 2}-.0031396{col 26}{space 2} .0016579{col 37}{space 1}   -1.89{col 46}{space 3}0.058{col 54}{space 4} -.006389{col 67}{space 3} .0001099
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0019189{col 26}{space 2} .0015242{col 37}{space 1}   -1.26{col 46}{space 3}0.208{col 54}{space 4}-.0049062{col 67}{space 3} .0010684
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0006937{col 26}{space 2} .0014792{col 37}{space 1}   -0.47{col 46}{space 3}0.639{col 54}{space 4}-.0035929{col 67}{space 3} .0022056
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .0005356{col 26}{space 2} .0015324{col 37}{space 1}    0.35{col 46}{space 3}0.727{col 54}{space 4}-.0024678{col 67}{space 3} .0035391
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .0017684{col 26}{space 2} .0016752{col 37}{space 1}    1.06{col 46}{space 3}0.291{col 54}{space 4}-.0015149{col 67}{space 3} .0050518
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .0030042{col 26}{space 2}  .001888{col 37}{space 1}    1.59{col 46}{space 3}0.112{col 54}{space 4}-.0006962{col 67}{space 3} .0067047
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .0042424{col 26}{space 2} .0021502{col 37}{space 1}    1.97{col 46}{space 3}0.048{col 54}{space 4}  .000028{col 67}{space 3} .0084568
{txt}{space 10}9  {c |}{col 14}{res}{space 2} .0054825{col 26}{space 2} .0024459{col 37}{space 1}    2.24{col 46}{space 3}0.025{col 54}{space 4} .0006886{col 67}{space 3} .0102763
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0067238{col 26}{space 2} .0027639{col 37}{space 1}    2.43{col 46}{space 3}0.015{col 54}{space 4} .0013067{col 67}{space 3}  .012141
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .0079661{col 26}{space 2} .0030969{col 37}{space 1}    2.57{col 46}{space 3}0.010{col 54}{space 4} .0018962{col 67}{space 3} .0140359
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .0092086{col 26}{space 2} .0034399{col 37}{space 1}    2.68{col 46}{space 3}0.007{col 54}{space 4} .0024665{col 67}{space 3} .0159506
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix b=r(b)'
{txt}
{com}. matrix list b
{res}
{txt}b[12,1]
                       r1
 rfg_sh:1._at {res} -.00435508
{txt} rfg_sh:2._at {res} -.00313956
{txt} rfg_sh:3._at {res} -.00191891
{txt} rfg_sh:4._at {res} -.00069366
{txt} rfg_sh:5._at {res}  .00053564
{txt} rfg_sh:6._at {res}  .00176845
{txt} rfg_sh:7._at {res}  .00300421
{txt} rfg_sh:8._at {res}  .00424239
{txt} rfg_sh:9._at {res}  .00548245
{txt}rfg_sh:10._at {res}  .00672385
{txt}rfg_sh:11._at {res}  .00796606
{txt}rfg_sh:12._at {res}  .00920855
{reset}
{com}. matrix at=r(at)
{txt}
{com}. matrix at=at[1...,"income_cpi3"]
{txt}
{com}. matrix list at
{res}
{txt}at[12,1]
        income_cpi3
 1._at {res}         1.8
{txt} 2._at {res}         2.3
{txt} 3._at {res}         2.8
{txt} 4._at {res}         3.3
{txt} 5._at {res}         3.8
{txt} 6._at {res}         4.3
{txt} 7._at {res}         4.8
{txt} 8._at {res}         5.3
{txt} 9._at {res}         5.8
{txt}10._at {res}         6.3
{txt}11._at {res}         6.8
{txt}12._at {res}         7.3
{reset}
{com}. matrix v = r(V)
{txt}
{com}. matrix list v
{res}
{txt}symmetric v[12,12]
                   rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:     rfg_sh:
                        1.          2.          3.          4.          5.          6.          7.          8.          9.         10.         11.         12.
                      _at         _at         _at         _at         _at         _at         _at         _at         _at         _at         _at         _at
 rfg_sh:1._at {res}  3.459e-06
{txt} rfg_sh:2._at {res}  3.032e-06   2.749e-06
{txt} rfg_sh:3._at {res}  2.602e-06   2.463e-06   2.323e-06
{txt} rfg_sh:4._at {res}  2.169e-06   2.175e-06   2.182e-06   2.188e-06
{txt} rfg_sh:5._at {res}  1.734e-06   1.886e-06   2.040e-06   2.194e-06   2.348e-06
{txt} rfg_sh:6._at {res}  1.297e-06   1.596e-06   1.897e-06   2.199e-06   2.503e-06   2.806e-06
{txt} rfg_sh:7._at {res}  8.589e-07   1.305e-06   1.753e-06   2.204e-06   2.657e-06   3.110e-06   3.565e-06
{txt} rfg_sh:8._at {res}  4.204e-07   1.013e-06   1.609e-06   2.209e-06   2.811e-06   3.414e-06   4.019e-06   4.623e-06
{txt} rfg_sh:9._at {res} -1.826e-08   7.208e-07   1.465e-06   2.213e-06   2.964e-06   3.718e-06   4.472e-06   5.228e-06   5.982e-06
{txt}rfg_sh:10._at {res} -4.566e-07   4.287e-07   1.320e-06   2.217e-06   3.117e-06   4.020e-06   4.925e-06   5.831e-06   6.736e-06   7.639e-06
{txt}rfg_sh:11._at {res} -8.941e-07   1.370e-07   1.175e-06   2.220e-06   3.269e-06   4.322e-06   5.376e-06   6.432e-06   7.487e-06   8.540e-06   9.591e-06
{txt}rfg_sh:12._at {res} -1.330e-06  -1.540e-07   1.031e-06   2.223e-06   3.420e-06   4.621e-06   5.825e-06   7.030e-06   8.235e-06   9.438e-06   .00001064   .00001183
{reset}
{com}. matrix se=vecdiag(cholesky(diag(vecdiag(v))))'
{txt}
{com}. matrix list se
{res}
{txt}se[12,1]
                      r1
 rfg_sh:1._at {res}  .0018599
{txt} rfg_sh:2._at {res}  .0016579
{txt} rfg_sh:3._at {res} .00152417
{txt} rfg_sh:4._at {res} .00147924
{txt} rfg_sh:5._at {res} .00153239
{txt} rfg_sh:6._at {res} .00167523
{txt} rfg_sh:7._at {res} .00188802
{txt} rfg_sh:8._at {res} .00215023
{txt} rfg_sh:9._at {res} .00244589
{txt}rfg_sh:10._at {res} .00276392
{txt}rfg_sh:11._at {res} .00309692
{txt}rfg_sh:12._at {res}  .0034399
{reset}
{com}. matrix d=at,b,se
{txt}
{com}. matrix list d
{res}
{txt}d[12,3]
        income_cpi3           r1           r1
 1._at {res}         1.8   -.00435508     .0018599
{txt} 2._at {res}         2.3   -.00313956     .0016579
{txt} 3._at {res}         2.8   -.00191891    .00152417
{txt} 4._at {res}         3.3   -.00069366    .00147924
{txt} 5._at {res}         3.8    .00053564    .00153239
{txt} 6._at {res}         4.3    .00176845    .00167523
{txt} 7._at {res}         4.8    .00300421    .00188802
{txt} 8._at {res}         5.3    .00424239    .00215023
{txt} 9._at {res}         5.8    .00548245    .00244589
{txt}10._at {res}         6.3    .00672385    .00276392
{txt}11._at {res}         6.8    .00796606    .00309692
{txt}12._at {res}         7.3    .00920855     .0034399
{reset}
{com}. svmat d, names(d)
{txt}
{com}. generate ul = d2 + 1.96*d3
{txt}(53,654 missing values generated)

{com}. generate ll = d2 - 1.96*d3
{txt}(53,654 missing values generated)

{com}. 
. // Plot 
. graph twoway line d2 ul ll d1, yline(0, lcolor(gs1)) lpattern(solid dash dash) lwidth(medium medthin medthin) lcolor(gs1 gs1 gs1) c(l) || kdensity income_cpi3 if sample==1 & income_cpi3>=1.8 & income_cpi3<=7.3, lpattern(dot) lcolor(gs5) xaxis(2) c(l) xscale(axis(2) range(1.8(0.5)7.3) off) yaxis(2) c(l) yscale(axis(2) range(0(0.1)1) off) legend(on order(1 2 4) col(1) label(1 "Effect of competition on support for immigrants' social rights") label(2 "95% Confidence interval") label(4 "Density plot of income") region(lwidth(none)) size(small)) xtitle("Income (x €1,000)") ytitle("Marginal effect of competition", size(medsmall)) title("") plotregion(style(none)) yscale(titlegap(*+10)) xscale(titlegap(*+10)) scheme(s1mono)
{res}{txt}
{com}. 
. graph export "figure_5.pdf", replace
{txt}(file figure_5.pdf written in PDF format)

{com}. 
. 
. * Table 4. 
. * Social housing allocations and support for the populist right by housing market tightness
. use "liss_L1L2", clear
{txt}
{com}. 
. // Model 11
. xtreg pvv_symp c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & decline==1, fe robust
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     3,389
{txt}Group variable: {res}nomem_encr{txt}{col 49}Number of groups{col 67}={col 69}{res}     1,053

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0409{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0126{col 63}{txt}avg{col 67}={col 69}{res}       3.2
{txt}     overall = {res}0.0135{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}16{txt},{res}1052{txt}){col 67}={col 70}{res}     6.26
{txt}corr(u_i, Xb){col 16}= {res}-0.0021{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 88:(Std. Err. adjusted for {res:1,053} clusters in nomem_encr)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}              pvv_symp{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .0504792{col 36}{space 2} .0546142{col 47}{space 1}    0.92{col 56}{space 3}0.356{col 64}{space 4} -.056686{col 77}{space 3} .1576443
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .0150616{col 36}{space 2} .0216643{col 47}{space 1}    0.70{col 56}{space 3}0.487{col 64}{space 4}-.0274487{col 77}{space 3} .0575718
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2}  -.00636{col 36}{space 2} .0059424{col 47}{space 1}   -1.07{col 56}{space 3}0.285{col 64}{space 4}-.0180202{col 77}{space 3} .0053003
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2}-.0108715{col 36}{space 2}  .015175{col 47}{space 1}   -0.72{col 56}{space 3}0.474{col 64}{space 4}-.0406482{col 77}{space 3} .0189051
{txt}{space 16}degree {c |}{col 24}{res}{space 2}-.1136047{col 36}{space 2} .5738512{col 47}{space 1}   -0.20{col 56}{space 3}0.843{col 64}{space 4}-1.239628{col 77}{space 3} 1.012418
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2} .0037135{col 36}{space 2} .0692896{col 47}{space 1}    0.05{col 56}{space 3}0.957{col 64}{space 4}-.1322481{col 77}{space 3} .1396751
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2}-.0699129{col 36}{space 2} .2578393{col 47}{space 1}   -0.27{col 56}{space 3}0.786{col 64}{space 4}-.5758507{col 77}{space 3} .4360249
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2}-.0178938{col 36}{space 2} .0442994{col 47}{space 1}   -0.40{col 56}{space 3}0.686{col 64}{space 4}-.1048191{col 77}{space 3} .0690315
{txt}{space 19}asc {c |}{col 24}{res}{space 2}-.1330059{col 36}{space 2}  .210497{col 47}{space 1}   -0.63{col 56}{space 3}0.528{col 64}{space 4}-.5460476{col 77}{space 3} .2800357
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2}-.0140916{col 36}{space 2} .0213551{col 47}{space 1}   -0.66{col 56}{space 3}0.509{col 64}{space 4}-.0559949{col 77}{space 3} .0278118
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} .0063663{col 36}{space 2} .0105108{col 47}{space 1}    0.61{col 56}{space 3}0.545{col 64}{space 4}-.0142583{col 77}{space 3} .0269909
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .4894231{col 36}{space 2} .0811257{col 47}{space 1}    6.03{col 56}{space 3}0.000{col 64}{space 4} .3302365{col 77}{space 3} .6486097
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .3096919{col 36}{space 2} .0935824{col 47}{space 1}    3.31{col 56}{space 3}0.001{col 64}{space 4} .1260625{col 77}{space 3} .4933214
{txt}{space 17}2012  {c |}{col 24}{res}{space 2} -.123313{col 36}{space 2} .1018209{col 47}{space 1}   -1.21{col 56}{space 3}0.226{col 64}{space 4}-.3231082{col 77}{space 3} .0764822
{txt}{space 17}2013  {c |}{col 24}{res}{space 2}-.0086781{col 36}{space 2} .1232006{col 47}{space 1}   -0.07{col 56}{space 3}0.944{col 64}{space 4}-.2504251{col 77}{space 3} .2330688
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} -.030252{col 36}{space 2} .1623483{col 47}{space 1}   -0.19{col 56}{space 3}0.852{col 64}{space 4}-.3488153{col 77}{space 3} .2883114
{txt}{space 22} {c |}
{space 17}_cons {c |}{col 24}{res}{space 2} 3.744768{col 36}{space 2} .9574519{col 47}{space 1}    3.91{col 56}{space 3}0.000{col 64}{space 4} 1.866035{col 77}{space 3}   5.6235
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               sigma_u {c |} {res} 2.6517087
               {txt}sigma_e {c |} {res} 1.2234045
                   {txt}rho {c |} {res} .82449932{txt}   (fraction of variance due to u_i)
{hline 23}{c BT}{hline 64}

{com}. 
. // Model 12
. xtreg pvv_symp c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & decline==0, fe robust
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}    15,698
{txt}Group variable: {res}nomem_encr{txt}{col 49}Number of groups{col 67}={col 69}{res}     4,747

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0554{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0245{col 63}{txt}avg{col 67}={col 69}{res}       3.3
{txt}     overall = {res}0.0294{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}16{txt},{res}4746{txt}){col 67}={col 70}{res}    36.12
{txt}corr(u_i, Xb){col 16}= {res}-0.1536{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 88:(Std. Err. adjusted for {res:4,747} clusters in nomem_encr)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}              pvv_symp{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .0756259{col 36}{space 2} .0325829{col 47}{space 1}    2.32{col 56}{space 3}0.020{col 64}{space 4} .0117483{col 77}{space 3} .1395035
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .0332147{col 36}{space 2} .0118485{col 47}{space 1}    2.80{col 56}{space 3}0.005{col 64}{space 4} .0099861{col 77}{space 3} .0564432
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2}-.0102028{col 36}{space 2} .0029615{col 47}{space 1}   -3.45{col 56}{space 3}0.001{col 64}{space 4}-.0160087{col 77}{space 3}-.0043968
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2}-.0502767{col 36}{space 2}  .080295{col 47}{space 1}   -0.63{col 56}{space 3}0.531{col 64}{space 4}-.2076922{col 77}{space 3} .1071388
{txt}{space 16}degree {c |}{col 24}{res}{space 2}-.5810313{col 36}{space 2} .2464812{col 47}{space 1}   -2.36{col 56}{space 3}0.018{col 64}{space 4}-1.064249{col 77}{space 3}-.0978138
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2}-.0240974{col 36}{space 2} .0476433{col 47}{space 1}   -0.51{col 56}{space 3}0.613{col 64}{space 4}-.1175004{col 77}{space 3} .0693057
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} .2189072{col 36}{space 2} .0943258{col 47}{space 1}    2.32{col 56}{space 3}0.020{col 64}{space 4} .0339849{col 77}{space 3} .4038295
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} .0118492{col 36}{space 2} .0135855{col 47}{space 1}    0.87{col 56}{space 3}0.383{col 64}{space 4}-.0147846{col 77}{space 3} .0384831
{txt}{space 19}asc {c |}{col 24}{res}{space 2}-.1076645{col 36}{space 2} .0790644{col 47}{space 1}   -1.36{col 56}{space 3}0.173{col 64}{space 4}-.2626675{col 77}{space 3} .0473385
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2}-.0096677{col 36}{space 2} .0109677{col 47}{space 1}   -0.88{col 56}{space 3}0.378{col 64}{space 4}-.0311695{col 77}{space 3} .0118341
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2}-.0026985{col 36}{space 2} .0051001{col 47}{space 1}   -0.53{col 56}{space 3}0.597{col 64}{space 4}-.0126971{col 77}{space 3}    .0073
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .6319085{col 36}{space 2} .0929039{col 47}{space 1}    6.80{col 56}{space 3}0.000{col 64}{space 4} .4497738{col 77}{space 3} .8140432
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .4280597{col 36}{space 2} .1654147{col 47}{space 1}    2.59{col 56}{space 3}0.010{col 64}{space 4} .1037702{col 77}{space 3} .7523493
{txt}{space 17}2012  {c |}{col 24}{res}{space 2}-.1295063{col 36}{space 2} .2433566{col 47}{space 1}   -0.53{col 56}{space 3}0.595{col 64}{space 4}-.6065981{col 77}{space 3} .3475855
{txt}{space 17}2013  {c |}{col 24}{res}{space 2} .1115967{col 36}{space 2} .3222423{col 47}{space 1}    0.35{col 56}{space 3}0.729{col 64}{space 4}-.5201477{col 77}{space 3} .7433412
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .2013972{col 36}{space 2} .4816047{col 47}{space 1}    0.42{col 56}{space 3}0.676{col 64}{space 4}-.7427714{col 77}{space 3} 1.145566
{txt}{space 22} {c |}
{space 17}_cons {c |}{col 24}{res}{space 2} 5.458176{col 36}{space 2} 3.953838{col 47}{space 1}    1.38{col 56}{space 3}0.168{col 64}{space 4}-2.293181{col 77}{space 3} 13.20953
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               sigma_u {c |} {res} 2.5535791
               {txt}sigma_e {c |} {res} 1.2846108
                   {txt}rho {c |} {res} .79803859{txt}   (fraction of variance due to u_i)
{hline 23}{c BT}{hline 64}

{com}. 
. // Model 13
. xtreg pvv_symp c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & low_stu==1 , fe robust
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     9,557
{txt}Group variable: {res}nomem_encr{txt}{col 49}Number of groups{col 67}={col 69}{res}     3,421

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0542{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0369{col 63}{txt}avg{col 67}={col 69}{res}       2.8
{txt}     overall = {res}0.0402{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}16{txt},{res}3420{txt}){col 67}={col 70}{res}    20.40
{txt}corr(u_i, Xb){col 16}= {res}0.0527{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 88:(Std. Err. adjusted for {res:3,421} clusters in nomem_encr)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}              pvv_symp{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .0397359{col 36}{space 2} .0346911{col 47}{space 1}    1.15{col 56}{space 3}0.252{col 64}{space 4}-.0282814{col 77}{space 3} .1077532
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .0073212{col 36}{space 2} .0159627{col 47}{space 1}    0.46{col 56}{space 3}0.647{col 64}{space 4}-.0239763{col 77}{space 3} .0386187
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2}-.0048362{col 36}{space 2} .0042575{col 47}{space 1}   -1.14{col 56}{space 3}0.256{col 64}{space 4}-.0131838{col 77}{space 3} .0035113
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2}-.0188104{col 36}{space 2} .0407101{col 47}{space 1}   -0.46{col 56}{space 3}0.644{col 64}{space 4} -.098629{col 77}{space 3} .0610082
{txt}{space 16}degree {c |}{col 24}{res}{space 2}-.3576612{col 36}{space 2} .3893083{col 47}{space 1}   -0.92{col 56}{space 3}0.358{col 64}{space 4}-1.120961{col 77}{space 3} .4056391
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2}-.0003329{col 36}{space 2} .0653025{col 47}{space 1}   -0.01{col 56}{space 3}0.996{col 64}{space 4}-.1283687{col 77}{space 3} .1277029
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} .2239739{col 36}{space 2} .1336174{col 47}{space 1}    1.68{col 56}{space 3}0.094{col 64}{space 4} -.038004{col 77}{space 3} .4859519
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} -.011598{col 36}{space 2} .0170157{col 47}{space 1}   -0.68{col 56}{space 3}0.496{col 64}{space 4}-.0449601{col 77}{space 3}  .021764
{txt}{space 19}asc {c |}{col 24}{res}{space 2}-.0527074{col 36}{space 2} .1113921{col 47}{space 1}   -0.47{col 56}{space 3}0.636{col 64}{space 4}-.2711092{col 77}{space 3} .1656944
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2} .0145405{col 36}{space 2} .0183372{col 47}{space 1}    0.79{col 56}{space 3}0.428{col 64}{space 4}-.0214125{col 77}{space 3} .0504936
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2} .0086425{col 36}{space 2} .0075683{col 47}{space 1}    1.14{col 56}{space 3}0.254{col 64}{space 4}-.0061964{col 77}{space 3} .0234814
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .6296001{col 36}{space 2}  .064091{col 47}{space 1}    9.82{col 56}{space 3}0.000{col 64}{space 4} .5039395{col 77}{space 3} .7552607
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .4163523{col 36}{space 2} .0925514{col 47}{space 1}    4.50{col 56}{space 3}0.000{col 64}{space 4} .2348906{col 77}{space 3}  .597814
{txt}{space 17}2012  {c |}{col 24}{res}{space 2}-.1204137{col 36}{space 2} .1342784{col 47}{space 1}   -0.90{col 56}{space 3}0.370{col 64}{space 4}-.3836877{col 77}{space 3} .1428603
{txt}{space 17}2013  {c |}{col 24}{res}{space 2}  .079508{col 36}{space 2} .1712739{col 47}{space 1}    0.46{col 56}{space 3}0.643{col 64}{space 4}-.2563015{col 77}{space 3} .4153176
{txt}{space 17}2015  {c |}{col 24}{res}{space 2} .1830359{col 36}{space 2} .2491866{col 47}{space 1}    0.73{col 56}{space 3}0.463{col 64}{space 4}-.3055337{col 77}{space 3} .6716055
{txt}{space 22} {c |}
{space 17}_cons {c |}{col 24}{res}{space 2} 3.131082{col 36}{space 2}  2.07765{col 47}{space 1}    1.51{col 56}{space 3}0.132{col 64}{space 4}-.9424793{col 77}{space 3} 7.204643
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               sigma_u {c |} {res} 2.5828199
               {txt}sigma_e {c |} {res} 1.2862686
                   {txt}rho {c |} {res} .80127346{txt}   (fraction of variance due to u_i)
{hline 23}{c BT}{hline 64}

{com}. 
. // Model 14
. xtreg pvv_symp c.income_cpi3##c.rfg_sh age degree hhsize unemployed fb_pct asc sh_pct leduc_pct i.year if sample==1 & sec_target==1 & low_stu==0, fe robust
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     9,530
{txt}Group variable: {res}nomem_encr{txt}{col 49}Number of groups{col 67}={col 69}{res}     3,380

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0497{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0173{col 63}{txt}avg{col 67}={col 69}{res}       2.8
{txt}     overall = {res}0.0238{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}16{txt},{res}3379{txt}){col 67}={col 70}{res}    18.17
{txt}corr(u_i, Xb){col 16}= {res}-0.0691{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 88:(Std. Err. adjusted for {res:3,380} clusters in nomem_encr)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}              pvv_symp{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}income_cpi3 {c |}{col 24}{res}{space 2} .1063055{col 36}{space 2} .0416372{col 47}{space 1}    2.55{col 56}{space 3}0.011{col 64}{space 4} .0246688{col 77}{space 3} .1879422
{txt}{space 16}rfg_sh {c |}{col 24}{res}{space 2} .0451269{col 36}{space 2} .0140916{col 47}{space 1}    3.20{col 56}{space 3}0.001{col 64}{space 4}  .017498{col 77}{space 3} .0727559
{txt}{space 22} {c |}
c.income_cpi3#c.rfg_sh {c |}{col 24}{res}{space 2}-.0136272{col 36}{space 2} .0035193{col 47}{space 1}   -3.87{col 56}{space 3}0.000{col 64}{space 4}-.0205274{col 77}{space 3}-.0067271
{txt}{space 22} {c |}
{space 19}age {c |}{col 24}{res}{space 2}-.0315508{col 36}{space 2} .0986543{col 47}{space 1}   -0.32{col 56}{space 3}0.749{col 64}{space 4} -.224979{col 77}{space 3} .1618774
{txt}{space 16}degree {c |}{col 24}{res}{space 2}-.4807406{col 36}{space 2} .3319754{col 47}{space 1}   -1.45{col 56}{space 3}0.148{col 64}{space 4}-1.131634{col 77}{space 3} .1701524
{txt}{space 16}hhsize {c |}{col 24}{res}{space 2}-.0153656{col 36}{space 2} .0558602{col 47}{space 1}   -0.28{col 56}{space 3}0.783{col 64}{space 4}-.1248889{col 77}{space 3} .0941577
{txt}{space 12}unemployed {c |}{col 24}{res}{space 2} .1324662{col 36}{space 2} .1239839{col 47}{space 1}    1.07{col 56}{space 3}0.285{col 64}{space 4}-.1106248{col 77}{space 3} .3755573
{txt}{space 16}fb_pct {c |}{col 24}{res}{space 2} .0209635{col 36}{space 2} .0249013{col 47}{space 1}    0.84{col 56}{space 3}0.400{col 64}{space 4}-.0278596{col 77}{space 3} .0697865
{txt}{space 19}asc {c |}{col 24}{res}{space 2}-.1161226{col 36}{space 2} .0994385{col 47}{space 1}   -1.17{col 56}{space 3}0.243{col 64}{space 4}-.3110882{col 77}{space 3} .0788431
{txt}{space 16}sh_pct {c |}{col 24}{res}{space 2}-.0120487{col 36}{space 2} .0148578{col 47}{space 1}   -0.81{col 56}{space 3}0.417{col 64}{space 4}-.0411798{col 77}{space 3} .0170824
{txt}{space 13}leduc_pct {c |}{col 24}{res}{space 2}-.0005278{col 36}{space 2} .0063386{col 47}{space 1}   -0.08{col 56}{space 3}0.934{col 64}{space 4}-.0129557{col 77}{space 3} .0119002
{txt}{space 22} {c |}
{space 18}year {c |}
{space 17}2010  {c |}{col 24}{res}{space 2} .5389023{col 36}{space 2} .1201307{col 47}{space 1}    4.49{col 56}{space 3}0.000{col 64}{space 4}  .303366{col 77}{space 3} .7744385
{txt}{space 17}2011  {c |}{col 24}{res}{space 2} .2963287{col 36}{space 2} .2093743{col 47}{space 1}    1.42{col 56}{space 3}0.157{col 64}{space 4}-.1141845{col 77}{space 3} .7068418
{txt}{space 17}2012  {c |}{col 24}{res}{space 2}-.2470077{col 36}{space 2} .3023983{col 47}{space 1}   -0.82{col 56}{space 3}0.414{col 64}{space 4}-.8399098{col 77}{space 3} .3458944
{txt}{space 17}2013  {c |}{col 24}{res}{space 2}-.0300264{col 36}{space 2} .4013897{col 47}{space 1}   -0.07{col 56}{space 3}0.940{col 64}{space 4}-.8170176{col 77}{space 3} .7569648
{txt}{space 17}2015  {c |}{col 24}{res}{space 2}   .00734{col 36}{space 2} .5989668{col 47}{space 1}    0.01{col 56}{space 3}0.990{col 64}{space 4}-1.167034{col 77}{space 3} 1.181714
{txt}{space 22} {c |}
{space 17}_cons {c |}{col 24}{res}{space 2} 4.303841{col 36}{space 2} 4.865437{col 47}{space 1}    0.88{col 56}{space 3}0.376{col 64}{space 4}-5.235657{col 77}{space 3} 13.84334
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               sigma_u {c |} {res} 2.5395322
               {txt}sigma_e {c |} {res} 1.2448607
                   {txt}rho {c |} {res} .80626364{txt}   (fraction of variance due to u_i)
{hline 23}{c BT}{hline 64}

{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\ghooijer\Desktop\log_main_analysis.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 1 Mar 2020, 16:00:15
{txt}{.-}
{smcl}
{txt}{sf}{ul off}